var express = require('express');
var router = express.Router();

/* GET users listing. */
//router.get('/test', function (req, res, next) {
//
//    request(
//        'https://www.baidu.com/s?wd=the%20austerity%20of%20love',
//        function (err, res, body) {
//            console.log(body);
//            try {
//                var data = JSON.parse(body);
//
//                data = data.data;
//                $res.render('error', {
//                    code: info.code,
//                    message: info.message || '',
//                    tagsLibrary: tagsLibrary,
//                    recommend: data.random || []
//                });
//            } catch (e) {
//                $res.render('error', {
//                    code: 500,
//                    message: info.message || '',
//                    tagsLibrary: tagsLibrary,
//                    recommend: []
//                });
//            }
//        });
//
//});

module.exports = router;
